<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改页面</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
            box-sizing: border-box;
        }
        body{
            background: url("img/reg.jpg") no-repeat center;
            padding-top: 25px;
        }

        .rg_layout{
            width: 900px;
            height: 500px;
            border: 8px solid #EEEEEE;
            background-color: white;
            /*让div水平居中*/
            margin: auto;
        }

        .rg_left{
            /*border: 1px solid red;*/
            float: left;
            margin: 15px;
        }
        .rg_left > p:first-child{
            color:#FFD026;
            font-size: 20px;
        }

        .rg_left > p:last-child{
            color:#A6A6A6;
            font-size: 20px;

        }


        .rg_center{
            float: left;
            /* border: 1px solid red;*/

        }

        .rg_right{
            /*border: 1px solid red;*/
            float: right;
            margin: 15px;
        }

        .rg_right > p:first-child{
            font-size: 15px;

        }
        .rg_right p a {
            color:pink;
        }

        .td_left{
            width: 100px;
            text-align: right;
            height: 45px;
        }
        .td_right{
            padding-left: 50px ;
        }

        #id,#dates,#type,#p,#upcoming_name,#begin,#end,#condition{
            width: 251px;
            height: 32px;
            border: 1px solid #A6A6A6 ;
            /*设置边框圆角*/
            border-radius: 5px;
            padding-left: 10px;
        }
        #checkcode{
            width: 110px;
        }

        #img_check{
            height: 32px;
            vertical-align: middle;
        }

        #btn_sub{
            width: 150px;
            height: 40px;
            background-color: #FFD026;
            border: 1px solid #FFD026 ;
        }

    </style>

</head>
<body>

<div class="rg_layout">
    <div class="rg_left">
        <p>修改待办页面</p>


    </div>

    <div class="rg_center">
        <div class="rg_form">
            <!--定义表单 form-->
            <form action="update" method="post">
                <table>
                    <tr>
                        <td class="td_left"><label for="id">ID</label></td>
                        <td class="td_right"><input type="text" name="id" id="id" placeholder="ID" th:value="${user.id}"></td>
                    </tr>

                    <tr>
                        <td class="td_left"><label for="dates">日期</label></td>
                        <td class="td_right"><input type="date" name="dates" id="dates" placeholder="请输入日期" th:value="${user.dates}"></td>
                    </tr>

                    <tr>
                        <td class="td_left"><label>类型</label></td>
                        <td class="td_right" th:value="${user.type}">
                            <select name="type" id="type">
                                <option value="Bug">Bug</option>
                                <option value="项目任务">项目任务</option>
                                <option value="自定义">自定义</option>
                            </select>
                        </td>
                    </tr>

                    <tr>
                        <td class="td_left"><label>P</label></td>
                        <td class="td_right" th:value="${user.p}">
                            <select name="p" id="p">
                                <option value="最高">最高</option>
                                <option value="一般">一般</option>
                            </select>
                        </td>
                    </tr>

                    <tr>
                        <td class="td_left"><label for="upcoming_name">项目名称</label></td>
                        <td class="td_right"><input type="text" name="upcoming_name" id="upcoming_name" placeholder="请输入项目名称" th:value="${user.upcoming_name}"></td>
                    </tr>

                    <tr>
                        <td class="td_left"><label for="begin">开始时间</label></td>
                        <td class="td_right"><input type="datetime-local" name="begin" id="begin" placeholder="请输入开始时间" th:value="${user.begin}"></td>
                    </tr>

                    <tr>
                        <td class="td_left"><label for="end">结束时间</label></td>
                        <td class="td_right"><input type="datetime-local" name="end" id="end" placeholder="请输入结束时间" th:value="${user.end}"></td>
                    </tr>
                    <tr>
                        <td class="td_left"><label>状态</label></td>
                        <td class="td_right" th:value="${user.condition}">
                            <select name="condition" id="condition">
                                <option value="已完成">已完成</option>
                                <option value="未完成">未完成</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center"><input type="submit" id="btn_sub" value="修改"></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>


</div>


</body>
</html>